#! /bin/bash
#
rm -f myclient myclient-t
keytool -genkey -alias client -keyalg RSA -keypass clientkey -storepass clientkey -keystore myclient
keytool -certreq -alias client -keystore myclient -storepass clientkey -file client.csr
keytool -export -alias client -keystore myclient -storepass clientkey -file client.cer
keytool -import -alias client -keystore myclient-t -storepass clientkey -file client.cer
keytool -import -alias client -keystore myserver-t -storepass serverkey -file client.cer
keytool -v -list -storepass clientkey -keystore myclient
keytool -v -list -storepass clientkey -keystore myclient-t
